home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / untcnvrs.sit / Unit Conversion / card_9124.txt < prev    next >
Text File  |  1990-11-02  |  4KB  |  148 lines

  1. -- card: 9124 from stack: in
  2. -- bmap block id: 2108
  3. -- flags: 0000
  4. -- background id: 5046
  5. -- name: Addinfo
  6. ----- HyperTalk script -----
  7. on closecard
  8.   lock screen
  9.   show card field "info1"
  10.   hide card field "info2"
  11.   show card button "more"
  12.   hide card button "previous"
  13. end closecard
  14.  
  15.  
  16. -- part 3 (field)
  17. -- low flags: 01
  18. -- high flags: 2004
  19. -- rect: left=24 top=35 right=319 bottom=487
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 0
  23. -- font id: 14
  24. -- text size: 12
  25. -- style flags: 256
  26. -- line height: 16
  27. -- part name: info1
  28.  
  29.  
  30. -- part 5 (field)
  31. -- low flags: 81
  32. -- high flags: 2004
  33. -- rect: left=24 top=35 right=319 bottom=487
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 0
  37. -- font id: 14
  38. -- text size: 12
  39. -- style flags: 256
  40. -- line height: 16
  41. -- part name: info2
  42.  
  43.  
  44. -- part 1 (button)
  45. -- low flags: 00
  46. -- high flags: A003
  47. -- rect: left=397 top=289 right=311 bottom=478
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: Go Back
  56. ----- HyperTalk script -----
  57. on mouseUp
  58.   visual effect zoom close
  59.   go back
  60. end mouseUp
  61.  
  62.  
  63.  
  64. -- part 4 (button)
  65. -- low flags: 00
  66. -- high flags: A003
  67. -- rect: left=397 top=266 right=288 bottom=478
  68. -- title width / last selected line: 0
  69. -- icon id / first selected line: 0 / 0
  70. -- text alignment: 1
  71. -- font id: 0
  72. -- text size: 12
  73. -- style flags: 0
  74. -- line height: 16
  75. -- part name: More
  76. ----- HyperTalk script -----
  77. on mouseUp
  78.   lock screen
  79.   hide card field "info1"
  80.   show card field "info2"
  81.   hide card button "more"
  82.   show card button "previous"
  83. end mouseUp
  84.  
  85.  
  86.  
  87. -- part 6 (button)
  88. -- low flags: 80
  89. -- high flags: A003
  90. -- rect: left=397 top=266 right=288 bottom=478
  91. -- title width / last selected line: 0
  92. -- icon id / first selected line: 0 / 0
  93. -- text alignment: 1
  94. -- font id: 0
  95. -- text size: 12
  96. -- style flags: 0
  97. -- line height: 16
  98. -- part name: Previous
  99. ----- HyperTalk script -----
  100. on mouseUp
  101.   lock screen
  102.   show card field "info1"
  103.   hide card field "info2"
  104.   show card button "more"
  105.   hide card button "previous"
  106. end mouseUp
  107.  
  108.  
  109.  
  110. -- part contents for card part 3
  111. ----- text -----
  112. On occasion, you might require to do a conversion that is not listed.
  113. Knowing how to convert between two metric units might be helpful
  114. at times.  Here is a list of metric conversion factors that might be helpful:
  115.                  ------------------------------------------------
  116.                  Prefix            Abbriviation           Factor
  117.                  -------------------------------------------------
  118.                  deca               da                         10
  119.                  hecto              h                          100
  120.                  kilo                 k                          1000
  121.                  -------------------------------------------------
  122.                  deci                d                          0.1
  123.                  centi               c                          0.01
  124.                  milli               m                          0.001
  125.                  -------------------------------------------------
  126.  
  127.          Remeber to square the factor when dealing with
  128.          area, and to cube it, when dealing with vlume.
  129.  
  130.  
  131. -- part contents for card part 5
  132. ----- text -----
  133. It might also be necessary to convert between some imperial units
  134. This is a little more complicated, as it does not use the base 10 number system like metric conversions. Here are the main ones:
  135. ----------------------------------------------------------------------------------------
  136.                                  1 Foot = 12 Inches
  137.                                  1 Yard = 3 Feet
  138.                                  1 Mile = 1760 Yards
  139.                                  1 Acre = 4840 Sq. Yards 
  140.                When dealing with units of area, one must remember 
  141.                to square the linear units, and when dealing with 
  142.                volumes, one must cube these linear units.
  143. ----------------------------------------------------------------------------------------
  144.                                  1 Pint = 16 Ounces (Liq.)
  145.                                  1 Quart = 2 Pints
  146.                                  1 Gallon = 4 Quarts
  147. ------------------------------------------------------------------------
  148.                                  1 Ponud = 16 Ounces